import request from '@/utils/request'

// 查询商品图片列表
export function listImage(query) {
  return request({
    url: '/basic/image/list',
    method: 'get',
    params: query
  })
}

// 查询商品图片详细
export function getImage(id) {
  return request({
    url: '/basic/image/' + id,
    method: 'get'
  })
}

// 新增商品图片
export function addImage(data) {
  return request({
    url: '/basic/image',
    method: 'post',
    data: data
  })
}

// 修改商品图片
export function updateImage(data) {
  return request({
    url: '/basic/image',
    method: 'put',
    data: data
  })
}


export function batchOffLine_logo(id) {
  return request({
    url: '/basic/image/batchOffLine_logo/' + id,
    method: 'put'
  })

}

export function batchOffLine_prod(id) {
  return request({
    url: '/basic/image/batchOffLine_prod/' + id,
    method: 'put'
  })

}

export function batchAccess(id) {
  return request({
    url: '/basic/image/batchAccess/' + id,
    method: 'put'
  })
}
